<?php
namespace app\model;
use think\admin\Model;

use think\model\relation\HasMany;

/**
 * 学员学习新计划
 * @class ClassPlan
 * @package app\model
 */
class ClassPlan extends Model
{
    protected $table = "hjz_class_plan";

    public function user(){
        return $this->belongsTo(User::class,'user_id');
    }
    public function classes(){
        return $this->belongsTo(Classes::class,'parent_id');
    }

    public function product(){
        return $this->belongsTo(Product::class,'product_id');
    }
}